#coding:utf-8
import os
import difflib

__author__ = 'yangxianming'

import json
import requests


def case():
    stra = "abc11"
    strb = "1abc"
    print(comparison(stra, strb))

    return 1

def comparison(self, str_A, str_B):
    c = difflib.SequenceMatcher(None, str_A, str_B).quick_ratio()
    return str(int(c * 100)) + "%"

case()